package com.example.demo.area.dao;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;

/**
* 
* @TableName area
*/
@TableName("area")
public class Area {

    /**
    * 
    */
    @ApiModelProperty("")
    private Integer id;
    /**
    * 
    */
    @TableField("`role`")
    private Integer role;
    /**
    * 
    */
    @TableField("`parent_id`")
    private Integer parentId;

    /**
    * 
    */
    public void setId(Integer id){
    this.id = id;
    }

    /**
    * 
    */
    public void setRole(Integer role){
    this.role = role;
    }

    /**
    * 
    */
    public void setParentId(Integer parentId){
    this.parentId = parentId;
    }

    /**
    * 
    */


    /**
    * 
    */
    public Integer getId(){
    return this.id;
    }

    /**
    * 
    */
    public Integer getRole(){
    return this.role;
    }

    /**
    * 
    */
    public Integer getParentId(){
    return this.parentId;
    }

    /**
    * 
    */

    public Area(Integer id, Integer role, Integer parentId, String name) {
        this.id = id;
        this.role = role;
        this.parentId = parentId;
    }

    public Area() {
    }

    public Area(Integer id, Integer role, Integer parentId) {
        this.id = id;
        this.role = role;
        this.parentId = parentId;
    }
}
